package com.atguigu.gmall.common.config.thread.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description
 * @Return
 * @Author https://weiranyi.github.io
 * @Date Created in 2022-12-05 17:59
 * @ConfigurationProperties 批量读取配置文件中的信息
 * @Data setter/getter方法
 **/
@ConfigurationProperties(prefix = "app.threadpool")
@Data
public class ThreadProperties {
    private Integer corePoolSize = 8;
    private Integer maximumPoolSize = 32;
    private Long keepAliveTime = 100l;
    private Integer workQueueSize = 5;
}
